package com.codestudy.service;

import cn.undraw.util.result.R;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codestudy.entity.CommentLike;

import java.util.List;

/**
 * 评论点赞表(CommentLike)表服务接口
 *
 * @author makejava
 * @since 2024-04-13 14:18:48
 */
public interface CommentLikeService extends IService<CommentLike> {
    /**
     * 批量删除评论点赞的状态
     *
     * @param cList
     */
    boolean removeBatchByCid(List<Integer> cList);

    /**
     * 根据用户id获取点赞的评论id列表
     *
     * @param uid
     * @return
     */
    R cidListByUid(Integer uid);

    /**
     * 评论点赞
     */
    R liked(Integer commentId);

}
